import LoginView from '../views/login/index.vue'
import LayOutView from '../views/layout/index.vue'
import ErrorView from '../views/error-page/index.vue'
import me from './modules/me.js'
import home from "./modules/home.js";
import order from "./modules/order.js";  //订单管理
import sale from "./modules/sale.js";   //销售数据
import manage from "./modules/manage.js";   //商品管理
import shop from "./modules/shop.js";
const routes = [
    {
        path: '/',
        component: LayOutView,
        redirect: "/order",
        children: [
            home,
            me,
            order,
            sale,
            manage
        ]
    },
    shop,
    {
        meta: {
            title: "登录",
            isNotVerify: true
        },
        path: '/login',
        component: LoginView,
    },
     {
        meta: {
            title: "找不到页面",
            isNotVerify: true
        },
        path: '/*',
        component: ErrorView,
    }
]

export default routes